package com.ruiyun.ruinews.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;

import com.ruiyun.ruinews.R;
import com.ruiyun.ruinews.base.BaseActivity;

public class WelcomeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        CountDownTimer countDownTimer = new CountDownTimer(3000,1000) {
            @Override
            public void onTick(long millisUntilFinished) {
                newsToast("欢迎访问睿新闻,最有态度的新闻");
            }

            @Override
            public void onFinish() {
                Intent jumpMain = new Intent(WelcomeActivity.this,MainActivity.class);
                startActivity(jumpMain);
                finish();
            }
        };
        countDownTimer.start();

    }
}
